from django.contrib.auth.models import Group
from django.shortcuts import render

# Create your views here.
from rest_framework.generics import GenericAPIView

from common.views import ListModel
from role.serializers import GroupSerializers


class GroupBase(GenericAPIView):
    queryset = Group.objects.all()
    serializer_class = GroupSerializers
    Model = Group


class GroupList(GroupBase, ListModel):
    pass
